<?php
class CompOtherdeclare extends AppModel{
	var $name = "CompOtherdeclare";
	var $primaryKey = "id";
	
	var $hasMany = array(
			'Attachment' => array(
			'conditions' => array("Attachment.is_deleted='0'"),
			'className' => 'Attachment',
			'foreignKey' => 'pid'
			)
	);
}

?>